ifeq ($(OS), Windows_NT)
#windows
else
#linux
src_path = src/chap03/
filenames = scoped_ptr.cpp

.PHONY : all clean
all : bin/a.out

srcs := $(foreach n,$(filenames), $(src_path)$(n))

bin/a.out : $(srcs)
	g++ $(srcs) -g -o bin/a.out

clean :
	rm bin/a.out
endif